package org.jeecg.modules.demo.commoditymanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品管理
 */
@Data
@TableName("commodity_management")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "commodity_management对象", description = "商品管理")
public class CommodityManagement implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 商品分类归属
     */
    @ApiModelProperty(value = "商品分类归属")
    private String classificationGoods;
    /**
     * 商品名
     */
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名")
    private String tradeName;
    /**
     * 商品编码
     */
    @Excel(name = "商品编号", width = 15)
    @ApiModelProperty(value = "商品编码")
    private Integer commodityCode;
    /**
     * 规格
     */
    @Excel(name = "商品规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String specification;
    /**
     * 库存
     */
    @Excel(name = "库存", width = 15)
    @ApiModelProperty(value = "库存")
    private Integer inventory;
    /**
     * 状态 1 = 出售中  2 = 已售完 3=待售 4=下架
     */
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private String status;
    /**
     * 创建日期
     */
    @Excel(name = "创建时间", width = 15)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 权重
     */
    @ApiModelProperty(value = "权重")
    private Integer weight;
    /**
     * 商品描述
     */
    @ApiModelProperty(value = "商品描述")
    private String productDescription;
    /**
     * 商品图
     */
    @ApiModelProperty(value = "商品图")
    private String productPic;
    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    private Double productPrice;

    /**
     * 折扣
     */
    @ApiModelProperty(value = "折扣")
    private String discount;

    /**
     * 成本价
     */
    @ApiModelProperty(value = "成本价")
    private Double priceCost;
    /**
     * 最低利润率限额
     */
    @ApiModelProperty(value = "最低利润率限额")
    private Double minimumMargin;
    /**
     * 毛利率
     */
    @ApiModelProperty(value = "毛利率")
    private Double grossRate;


    @ApiModelProperty(value = "详情图")
    private String detailsUrl;
    @ApiModelProperty(value = "是否在小程序显示")
    private String isShow;
    private String storeId;

    private String groupId;

}
